﻿using System.Data;
using System.Linq;


namespace PlanoAulaHelper.Reports
{


    public partial class Relatorios
    {

        public static DataTable ObterDadosRelatorioAvaliacao(int IdItem)
        {
            var relatorio = (from r in new RelatoriosDataContext().RelatorioAvaliacaos
                             where r.IdPlanoAulaCab == IdItem
                             orderby r.DataMarcada ascending, r.NomeAvaliacao ascending
                             select r);
            return relatorio.ToADOTable(rec => new object[] { relatorio });
        }
    }
}
